/**
  ******************************************************************************
* @file				pwm_beep.c
* @Software			MDK V5
* @Target 			MM32F533
* @author			ou_teki
* @date				2024-0715
  ******************************************************************************
  */


#include	"pwm_beep.h"



//-TKW24-0715-PWM Config
//- BEEP->TIM8_CH1_PC13
uint8_t    BeepPwmInit(void)
{
    //-TKW24-0715-Clock Config
    RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOC, ENABLE);
    RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM8, ENABLE);

    //-TKW24-0715-GPIO Config
    GPIO_InitTypeDef gpio_pwm_init_s;
    gpio_pwm_init_s.GPIO_Mode = GPIO_Mode_AF_PP;
    gpio_pwm_init_s.GPIO_Pin = GPIO_Pin_13;
    gpio_pwm_init_s.GPIO_Speed = GPIO_Speed_High;
    GPIO_Init(GPIOC, &gpio_pwm_init_s);
    GPIO_PinAFConfig(GPIOC, GPIO_PinSource13, GPIO_AF_3);

    //-TKW24-0715-PWM Config
    


    return 0;
}


uint8_t    BeepPwmSet(uint8_t freq, uint8_t duty)
{

    return 0;
}


uint8_t    BeepPwmOn(void)
{
	
    return 0;
}


uint8_t    BeepPwmOff(void)
{

    return 0;
}


/********************************End of File************************************/


